package com.api.shopapi.service;

import com.api.shopapi.entity.AskAnswerName;
import com.github.pagehelper.PageInfo;
import org.springframework.stereotype.Service;

import java.util.List;

@Service
public interface AskAnswerNameService {

    int insert(AskAnswerName askAnswerName);

    int delete(String askAnswerNameCode);

    int update(AskAnswerName askAnswerName);

    AskAnswerName getByAskAnswerNameCode(String askAnswerNameCode);

    List<AskAnswerName> listByCommandCenterCode(String commandCenterCode);

    List<AskAnswerName> listByGovCodeType(String govCode,String type);

    PageInfo<AskAnswerName> pageByCommandCenterCode(int pageIndex, int pageSize, String commandCenterCode);

    PageInfo<AskAnswerName> pageByGovCodeType(int pageIndex, int pageSize,
                                              String governmentCode,String type);


}
